import {createStore} from 'vuex'
import createPersistedState from "vuex-persistedstate";

export const store = createStore({
    state: {
        token: '',
    },
    plugins: [createPersistedState()],
    mutations: {
        setToken(state, data) {
            state.token = data
        },
    },
})